package com.hjq.fcloud.ui.activity

import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.hjq.fcloud.R
import com.hjq.fcloud.app.AppActivity
import com.hjq.fcloud.config.SystemSet
import kotlinx.android.synthetic.main.activity_face_guide_page.userNameTv

/**
 * 人脸确认-引导界面
 */
class FaceConfirmGuidePageActivity : AppActivity() {

    companion object {
        fun launcher(context: Context, bundle: Bundle?) {
            var intent = Intent(context, FaceConfirmGuidePageActivity::class.java)
            if (bundle != null) {
                intent.putExtras(bundle)
            }
            context.startActivity(intent)
        }
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_face_guide_page
    }

    override fun initView() {

    }

    override fun initData() {
        var userName = SystemSet.config?.info?.user_name
        userNameTv.setText("请确保为" + userName + "本人操作")
    }

    fun startFaceBtn(v: View) {
        FaceConfirmActivity.launcher(context,getBundle())
        finish()
    }
}